package com.dcw.lixb.designmode.observer;

/**
 * @author lixiaobin
 * @date 2020-07-29 15:16:05
 * @desc 描述信息
 */
public class OctalObserver extends Observer {
    public OctalObserver(Subject subject) {
        mSubject = subject;
        mSubject.attach(this);
    }
    @Override
    public void update() {
        System.out.println("Octal string : "+Integer.toOctalString(mSubject.getState()));
    }
}
